package api_models

type EditCashAccountReq struct {
	AlipayAccount string `json:"alipay_account" validate:"required"`
	AlipayName    string `json:"alipay_name" validate:"required"`
	Smscode       string `json:"smscode" validate:"required"`
	Accountid     int    `json:"accountid"`
}

type UserWithdrawPass struct {
	PayPassword string `json:"pay_password"  validate:"required,min=6,max=18"` //支付密碼
}

type UserWithdrawReq struct {
	ApplyAmount int    `json:"apply_amount"  validate:"required"`         //提現申請金額
	BankId      int    `json:"bank_id"  validate:"required"`              //銀行id
	Smscode     string `json:"smscode"  validate:"required,min=6,max=18"` //短信验证码
}

type WithdrawsReq struct {
	Status    int    `json:"status"`     //0: 待審核; 1: 審核通過, 打款中; 2.成功; 3.失敗; 4 全部
	StartTime string `json:"start_time"` //搜索開始時間
	EndTime   string `json:"end_time"`   //搜索結束時間
	PageParam
}
type WithdrawsRsp struct {
	Status          string `json:"status" `          //0: 待審核; 1: 審核通過, 打款中; 2.成功; 3.失敗; 4 全部
	SerialNumber    string `json:"serial_number"`    //訂單編號
	CreatedTime     string `json:"created_time"`     //創建時間
	ApplyAmount     string `json:"apply_amount"`     //提現申請金額
	BankName        string `json:"bank_name"`        //銀行名稱
	BankcardAccount string `json:"bankcard_account"` //銀行卡號
	Remark          string `json:"remark"`           //備註
}

var WithdrawStatus = map[int]string{0: "待审核", 1: "打款中", 2: "已打款", 3: "提现失败"}

type WithdrawlogReq struct {
	PageParam
}
